﻿using System;
using System.Linq;
using System.Text;
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using Newtonsoft.Json;
using SqlSugar;

namespace Aioms.Models
{
    /// <summary>
    /// 巡检标准
    /// </summary>
    [ExcelExporter(Name = "巡检标准")]
    [SugarTable("inspection_standard")]
    public partial class InspectionStandard
    {
        public InspectionStandard()
        {
            this.Created = DateTime.Now;
            this.Updated = DateTime.Now;
        }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
        [IEIgnore(IsExportIgnore = true)]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        [JsonProperty("id")]
        public long Id { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        [IEIgnore(IsExportIgnore = true)]
        [SugarColumn(ColumnName = "eid")]
        [JsonProperty("eid")]
        public long Eid { get; set; }

        /// <summary>
        /// Desc:设备类型id
        /// Default:
        /// Nullable:True
        /// </summary>           
        [IEIgnore(IsExportIgnore = true)]
        [SugarColumn(ColumnName = "dvtid")]
        [JsonProperty("dvtid")]
        public long Dvtid { get; set; }

        /// <summary>
        /// Desc:巡检步骤
        /// Default:
        /// Nullable:True
        /// </summary>           
        [ExporterHeader(DisplayName = "巡检步骤")]
        [SugarColumn(ColumnName = "procedure")]
        [JsonProperty("procedure")]
        public string Procedure { get; set; }

        /// <summary>
        /// Desc:识别类型
        /// Default:
        /// Nullable:True
        /// </summary>           
        //[ExporterHeader(DisplayName = "识别类型")]
        //[SugarColumn(ColumnName = "cvid")]
        //[JsonProperty("cvid")]
        //public long Cvid { get; set; }

        /// <summary>
        /// Desc:记录方式
        /// Default:
        /// Nullable:True
        /// </summary>           
        [ExporterHeader(DisplayName = "记录方式")]
        [SugarColumn(ColumnName = "record")]
        [JsonProperty("record")]
        public string Record { get; set; }

        /// <summary>
        /// Desc:选项
        /// Default:
        /// Nullable:True
        /// </summary>           
        [ExporterHeader(DisplayName = "选项")]
        [SugarColumn(ColumnName = "option")]
        [JsonProperty("option")]
        public string Option { get; set; }

        /// <summary>
        /// Desc:图片
        /// Default:
        /// Nullable:True
        /// </summary>           
        [IEIgnore(IsExportIgnore = true)]
        [SugarColumn(ColumnName = "img_url")]
        [JsonProperty("img_url")]
        public string ImgUrl { get; set; }

        /// <summary>
        /// Desc:视频
        /// Default:
        /// Nullable:True
        /// </summary>           
        [IEIgnore(IsExportIgnore = true)]
        [SugarColumn(ColumnName = "video_url")]
        [JsonProperty("video_url")]
        public string VideoUrl { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        [IEIgnore(IsExportIgnore = true)]
        [SugarColumn(ColumnName = "created")]
        [JsonProperty("created")]
        public DateTime? Created { get; set; }

        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:True
        /// </summary>           
        [IEIgnore(IsExportIgnore = true)]
        [SugarColumn(ColumnName = "updated")]
        [JsonProperty("updated")]
        public DateTime? Updated { get; set; }

    }
}
